package com.qiaofang.collectmanage.service;
/**
 * @Author: yi.li
 */
import com.alibaba.fastjson.JSONObject;
import com.qiaofang.collectmanage.dao.domain.CollectRule;
import com.qiaofang.collectmanage.stub.bean.*;
import com.qiaofang.common.model.page.PageDTO;

import java.util.List;

public interface CollectRuleService {

    CollectRuleDTO getCollectRuleById(Integer uuid);

    void saveCollectRule(SaveCollectRuleDTO saveCollectRuleDTO);

    int updateCollectRule(UpdateCollectRuleDTO updateCollectRuleDTO);

    List<CollectRuleDTO> listCollectRule(ListCollectRuleDTO collectRuleDTO);

    int removeCollectRule(RemoveCollectRuleDTO removeCollectRuleDTO);

    CollectRuleDTO getCollectRule(GetCollectRuleDTO collectRuleDTO);

    List<CollectRuleDTO> searchCollectRulePage(SearchCollectRulePostDTO searchCollectRulePostDTO, PageDTO pageDTO);

    public Long countSearchCollectRulePage(SearchCollectRulePostDTO dto);

    void commonCityExtend(String city, String webSite, String belonger, String collectType, String collectHouseType, List<CommonCityExtendDTO> data);

    public JSONObject startData(String city, String source, String belonger, String collectType, String collectHouseType, String titleLink)throws Exception;

    List<String> getCitys();

    List<String> getSources();

    void inputCityDataToDbByUuid(List<String> uuids);
}
